package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.ServiceItem;
import cn.wolfcode.car.business.query.ServiceItemQuery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ServiceItemMapper extends BaseMapper<ServiceItem> {

    /*int insert(ServiceItem record);*/

    List<ServiceItem> selectAll();

    int updateByPrimaryKey(ServiceItem record);

    List<ServiceItem> selectForList(ServiceItemQuery qo);

    void changeSaleStatus(@Param("id") Long id, @Param("status") Integer status);

    void changeAuditStatus(@Param("id") Long id, @Param("status") Integer status);
}